/* 搜索栏样式 */
.search-bar {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-bar input[type="text"] {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 200px;
    font-size: 14px;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-filter select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    min-width: 120px;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-filter input[type="date"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* 记录列表样式 */
.records-section {
    margin-top: 20px;
}

.records-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
}

.record-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-info h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.status-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-tag.completed {
    background: #e8f5e9;
    color: #388e3c;
}

.status-tag.pending {
    background: #e3f2fd;
    color: #1976d2;
}

.status-tag.cancelled {
    background: #ffebee;
    color: #d32f2f;
}

.status-tag.unbooked {
    background: #f5f5f5;
    color: #757575;
}

.record-time {
    text-align: right;
}

.record-time .date {
    display: block;
    color: #666;
    font-size: 14px;
}

.record-time .time {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

.record-content {
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.info-row {
    margin-bottom: 10px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row .label {
    color: #666;
    margin-right: 10px;
}

.record-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.action-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.view-btn {
    background: #f5f5f5;
    color: #333;
}

.view-btn:hover {
    background: #e0e0e0;
}

.cancel-btn {
    background: #ff5252;
    color: #fff;
}

.cancel-btn:hover {
    background: #ff1744;
}

.status-tag.cancelled {
    background: #ffebee;
    color: #d32f2f;
}

/* 记录详情弹窗样式 */
.record-detail {
    margin-top: 20px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item .label {
    color: #666;
    margin-right: 10px;
}

.content-text {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

.content-text p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 768px) {
    .records-list {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* 搜索和筛选区域 */
.filter-section {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.status-filter {
    width: 150px;
}

.status-filter select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background-color: #fff;
}

.status-filter select:focus {
    border-color: #4a90e2;
    outline: none;
}

/* 移除不需要的样式 */
.search-box,
.date-filter,
.search-btn {
    display: none;
}

/* 记录列表 */
.records-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.record-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s;
}

.record-card:hover {
    transform: translateY(-2px);
}

/* 状态标签 */
.status-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-tag.completed {
    background: #e8f5e9;
    color: #388e3c;
}

.status-tag.cancelled {
    background: #ffebee;
    color: #d32f2f;
}

/* 加载状态 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4a90e2;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    color: #4a90e2;
    border-color: #4a90e2;
}

.page-btn.active {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
}

.page-btn:disabled {
    background: #f5f7fa;
    color: #c0c4cc;
    cursor: not-allowed;
}

/* 记录卡片中的状态样式 */
.record-card .status-tag {
    margin-left: auto;
}